<script>

export default {
  name: "ApiDocument",
  mounted(){
    setTimeout(() => {
      this.loading = false;
    }, 300);
    const that = this;
    window.onresize = function temp() {
      that.height = document.documentElement.clientHeight - 94.5 + "px;";
    };
  },
  data(){
    return{
      url:this.baseUrl+'/swagger-ui/index.html',
      height: document.documentElement.clientHeight - 94.5 + "px;",
      loading: true,
    }
  }
}
</script>

<template>
  <div v-loading="loading" :style="'height:'+height">
    <iframe :src="url" frameborder="0" style="width:100%;height:100%" scrolling="auto" ref="iframe"/>
  </div>
</template>

<style scoped>

</style>
